//
//  TTVideoConfigration.h
//  glTextureStickers
//
//  Created by jiang on 2017/6/1.
//  Copyright © 2017年 t. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TTVideoConfigration : NSObject <NSCoding, NSCopying>

/// 默认视频配置
+ (instancetype)defaultConfiguration;

#pragma mark - Attribute
///=============================================================================
/// @name Attribute
///=============================================================================
/// 视频的分辨率，宽高务必设定为 2 的倍数，否则解码播放时可能出现绿边(这个videoSizeRespectingAspectRatio设置为YES则可能会改变)
@property (nonatomic, assign) CGSize videoSize;

/// 输出图像是否等比例,默认为NO
@property (nonatomic, assign) BOOL videoSizeRespectingAspectRatio;

/// 视频输出方向
@property (nonatomic, assign) UIInterfaceOrientation outputImageOrientation;

///// 自动旋转(这里只支持 left 变 right  portrait 变 portraitUpsideDown)
//@property (nonatomic, assign) BOOL autorotate;
//
///// 视频的帧率，即 fps
//@property (nonatomic, assign) NSUInteger videoFrameRate;
//
///// 视频的最大帧率，即 fps
//@property (nonatomic, assign) NSUInteger videoMaxFrameRate;
//
///// 视频的最小帧率，即 fps
//@property (nonatomic, assign) NSUInteger videoMinFrameRate;
//
///// 最大关键帧间隔，可设定为 fps 的2倍，影响一个 gop 的大小
//@property (nonatomic, assign) NSUInteger videoMaxKeyframeInterval;
//
///// 视频的码率，单位是 bps
//@property (nonatomic, assign) NSUInteger videoBitRate;
//
///// 视频的最大码率，单位是 bps
//@property (nonatomic, assign) NSUInteger videoMaxBitRate;
//
///// 视频的最小码率，单位是 bps
//@property (nonatomic, assign) NSUInteger videoMinBitRate;
//
/////< 分辨率
//@property (nonatomic, assign) LFLiveVideoSessionPreset sessionPreset;
//
/////< ≈sde3分辨率
//@property (nonatomic, assign, readonly) NSString *avSessionPreset;
//
/////< 是否是横屏
//@property (nonatomic, assign, readonly) BOOL landscape;

@end
